package cn.store.service;

import cn.store.domain.Order;
import cn.store.domain.PageModel;
import cn.store.domain.User;

import java.sql.SQLException;
import java.util.List;

public interface OrderService {

	void saveOrder(Order order)throws Exception;

	PageModel findMyOrdersWithPage(User user, int curNum)throws Exception;

	Order findOrderByOid(String oid)throws Exception;

	void updateOrder(Order order)throws Exception;

	void updateOrderStateById(String oid,String state) throws Exception;

	PageModel findAllOrders(String st, int curNum, String keyWord)throws Exception;

	int deleteOrderById(String oid) throws SQLException;
}
